package com.ydx.meituan.model.base;


import com.ydx.meituan.model.Annotations.YdxNotBlank;
import com.ydx.meituan.model.Annotations.YdxTimestampCheck;

/**
*
*Description: 请求共用参数
*
* */
public class BaseRequest {
//    @NotBlank(message = "channel 参数不能为空")
    @YdxNotBlank
    private String channel;

    /*@NotNull(message = "timestamp 参数不能为空")
    @Max(value=9999999999999l,message = "请传入13位毫秒时间戳")
    @Min(value=1000000000000l,message = "请传入13位毫秒时间戳")*/
    @YdxTimestampCheck
    private Long timestamp;

//    @NotBlank(message = "sign 参数不能为空")
    @YdxNotBlank
    private String sign;

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }
}
